package model.simulation;

import model.AbstractDepartment;

//C级单位
public class SiCDepartment extends SiDepartment
{
	 String aName;

	 String bName;

	 String cName;

	public SiCDepartment(SiDDepartment dDepartment)
	{
		this.aName = dDepartment.aName;
		this.bName = dDepartment.bName;
		this.cName = dDepartment.cName;
	}
	
	@Override
	public boolean hasSubDepartment() {return true;}

	@Override
	public boolean isSubDepartmentInThis(AbstractDepartment department)
	{
		SiDDepartment dDepartment=(SiDDepartment)department;
		return aName.equals(dDepartment.aName) && bName.equals(dDepartment.bName)
				&& cName.equals(dDepartment.cName);
	}

	@Override
	public String departmentName()
	{
		return aName + bName + cName;
	}
}
